@REM 创建Flowable数据库

@REM 初始化环境变量
call Common.bat

@REM 执行脚本
mysql --host=%mysql_host% --port=%mysql_port% --database=%mysql_db% --user=%mysql_username% --password=%mysql_password% --verbose ^
      -e "source %dir%/1.init-flowable/mysql/01.flowable.mysql.create.common.sql" ^
      -e "source %dir%/1.init-flowable/mysql/02.flowable.mysql.create.variable.sql" ^
      -e "source %dir%/1.init-flowable/mysql/03.flowable.mysql.create.variable.history.sql" ^
      -e "source %dir%/1.init-flowable/mysql/04.flowable.mysql.create.task.sql" ^
      -e "source %dir%/1.init-flowable/mysql/05.flowable.mysql.create.task.history.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.job.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.identity.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.identitylink.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.identitylink.history.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.entitylink.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.entitylink.history.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.eventsubscription.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.history.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.engine.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.cmmn.create.sql" ^
      -e "source %dir%/1.init-flowable/mysql/flowable.mysql.create.batch.sql";